package org.celery.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 订单流水表实体类
 *
 * @author Celery
 * @since 2022-04-04
 */
@Data
@TableName("celery_order_log")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "OrderLog对象", description = "订单流水表")
public class OrderLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
  private Long id;
    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    private Long orderId;
    /**
     * 流水内容
     */
    @ApiModelProperty(value = "流水内容")
    private String content;
    /**
     * 状态类型(1 = 订单状态, 2 = 发货状态, 3 = 支付状态)
     */
    @ApiModelProperty(value = "状态类型(1 = 订单状态, 2 = 发货状态, 3 = 支付状态)")
    private Integer statusType;
    /**
     * 原状态
     */
    @ApiModelProperty(value = "原状态")
    private Integer statusFrom;
    /**
     * 目标状态
     */
    @ApiModelProperty(value = "目标状态")
    private Integer statusTo;


}
